@echo off

IF EXIST build GOTO buildok

echo Directory build does not exist. Program hasn't yet been compiled.
echo Press any key to exit.
pause > NUL
GOTO end

:buildok

echo Launching...

cd build
java Main
cd ..
